//1. 引入 {legacy_createStore} 用来创建redux中的核心store对象
//引入applyMiddleware解决（支持）异步问题
import { legacy_createStore, applyMiddleware } from "redux"
//2. 引入为count组件操作数据的reducer（count_reducer）
import countReducer from './count_reducer'
//4. 引入redux-thunk用于异步
import thunk from 'redux-thunk'
//打印日志
import logger from 'redux-logger'

//3. 暴露store
export default legacy_createStore(countReducer, applyMiddleware(thunk, logger))
